<h1 class="flex">
    您当前的借阅等级为： <img width="60px" src="{{ auth()->user()->level->icon }}" alt="" /><span class="text-blue-700 font-bold ml-4">{{ auth()->user()->level->name }}</span>
</h1>

<h4 class="mt-4">您可以：</h4>
<ul class="list-disc ml-4">
    <li>最多借阅 <span  class="text-red-500">{{ auth()->user()->level->borrow_num }}</span> 本</li>
    <li>最多借阅 <span  class="text-red-500">{{ auth()->user()->level->limit_day }}</span> 天</li>
</ul>


<h4 class="mt-10">升级规则</h4>
<div class="overflow-x-auto">
    <table class="table table-zebra">
        <!-- head -->
        <thead>
        <tr>
            <th>等级名称</th>
            <th>升级所需借阅次数</th>
            <th>限制本数</th>
            <th>限制天数</th>
        </tr>
        </thead>
        <tbody>
        @foreach(\App\Models\Level::all() as $item)
        <tr>
            <th class="flex items-center gap-2"> <img width="60px" src="{{ $item->icon }}" alt="" /> {{ $item->name }}</th>
            <th> {{ $item->score }}</th>
            <th> {{ $item->borrow_num }}</th>
            <th> {{ $item->limit_day }}</th>
        </tr>
        @endforeach

        </tbody>
    </table>
</div>
